﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using SelfService.Model.Models;
using SelfService.Model;


namespace SelfService.ViewModel.SysPatientVMs
{
    public partial class SysPatientTemplateVM : BaseTemplateVM
    {
        [Display(Name = "就诊卡号")]
        public ExcelPropety CardNo_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.CardNo);
        [Display(Name = "姓名")]
        public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.Name);
        [Display(Name = "年龄")]
        public ExcelPropety Age_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.Age);
        [Display(Name = "性别")]
        public ExcelPropety Sex_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.Sex);
        [Display(Name = "就诊卡余额")]
        public ExcelPropety Balance_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.Balance);
        [Display(Name = "身份证号码")]
        public ExcelPropety IdCardNo_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.IdCardNo);
        [Display(Name = "社保卡号")]
        public ExcelPropety IcCardNo_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.IcCardNo);
        [Display(Name = "身份证UID")]
        public ExcelPropety Uid_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.Uid);
        [Display(Name = "地址")]
        public ExcelPropety Address_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.Address);
        [Display(Name = "手机号码")]
        public ExcelPropety Phone_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.Phone);
        [Display(Name = "上次业务时间")]
        public ExcelPropety LastTime_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.LastTime);
        [Display(Name = "建档时间")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<SysPatient>(x => x.CreateTime);

	    protected override void InitVM()
        {
        }

    }

    public class SysPatientImportVM : BaseImportVM<SysPatientTemplateVM, SysPatient>
    {

    }

}
